<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>contentExt - write</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<script type="text/javascript">
	<!--
		function goList() {
			var f = document.contentExtCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>
	
	<p><a href="/">home</a></p>
		
	<h1>ContentExt - edit</h1>
	
	<form:form commandName="contentExtCriteria" id="contentExtCriteriaForm" name="contentExtCriteriaForm" action="/contentExt.do" method="get">
	<input type="hidden" name="mode"/>
	<form:hidden path="contentId"/>
	<form:hidden path="paging.currentPage"/>
	</form:form>

	<form:form commandName="contentExt" name="contentExtForm" action="/contentExtEdit.do">
	<input type="hidden" name="mode" value="edit"/>
	<form:hidden path="contentId"/>
	<table width="800">
		<colgroup width="800">
			<col width="100"/>
			<col width="*"/>
		</colgroup>
		<tr>
			<th>contentId</th>
			<td>
				<c:out value="${contentExt.contentId}"/>
			</td>
		</tr>
		<tr>
			<th>title</th>
			<td>
				<form:input path="title"/>
				<form:errors path="title" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>shortTitle</th>
			<td>
				<form:input path="shortTitle"/>
				<form:errors path="shortTitle" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>author</th>
			<td>
				<form:input path="author"/>
				<form:errors path="author" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>origin</th>
			<td>
				<form:input path="origin"/>
				<form:errors path="origin" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>originUrl</th>
			<td>
				<form:input path="originUrl"/>
				<form:errors path="originUrl" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>description</th>
			<td>
				<form:input path="description"/>
				<form:errors path="description" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>releaseDate</th>
			<td>
				<form:input path="releaseDate"/>
				<form:errors path="releaseDate" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>mediaPath</th>
			<td>
				<form:input path="mediaPath"/>
				<form:errors path="mediaPath" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>mediaType</th>
			<td>
				<form:input path="mediaType"/>
				<form:errors path="mediaType" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>titleColor</th>
			<td>
				<form:input path="titleColor"/>
				<form:errors path="titleColor" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>isBold</th>
			<td>
				<form:input path="isBold"/>
				<form:errors path="isBold" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>titleImg</th>
			<td>
				<form:input path="titleImg"/>
				<form:errors path="titleImg" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>contentImg</th>
			<td>
				<form:input path="contentImg"/>
				<form:errors path="contentImg" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>typeImg</th>
			<td>
				<form:input path="typeImg"/>
				<form:errors path="typeImg" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>link</th>
			<td>
				<form:input path="link"/>
				<form:errors path="link" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>tplContent</th>
			<td>
				<form:input path="tplContent"/>
				<form:errors path="tplContent" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>needRegenerate</th>
			<td>
				<form:input path="needRegenerate"/>
				<form:errors path="needRegenerate" cssClass="errorMessage"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="edit"/>
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
